
public class PoolThread extends Thread{
	Supervisor supervisor;
	public PoolThread(Supervisor supervisor){
		this.supervisor = supervisor;
	}
	public void run(){
		while (supervisor.canContinue()){
			Job job = supervisor.get();
			supervisor.begin();
			job.traitement();
			supervisor.end();
		}
	}
}
